package com.suncnpap.library.mapper;


import com.suncnpap.library.model.Library;


import java.util.List;

import com.suncnpap.library.model.hotResult;
import com.suncnpap.library.model.hotVo;
import com.suncnpap.statistics.model.LatelyVo;
import org.apache.ibatis.annotations.Param;

import com.app.util.database.mybatis.Page;
import com.suncnpap.base.mapper.BaseMapper;

/** 
 * 说明： 书库Mapper
 */
public interface LibraryMapper extends BaseMapper<Library>{
	
	/**
	 * 借出
	 * @param strId
	 */
	public void updateBorrowById(@Param("strBookBarcode") String strBookBarcode, @Param("strSchoolId") String strSchoolId);
	
	/**
	 * 归还
	 * @param strId
	 */
	public void updateReturnById(@Param("strBookBarcode") String strBookBarcode, @Param("strSchoolId") String strSchoolId);
	
	public List<Library> librarylistPage(Page page);
	
	public Library findByBookBarcode(@Param("strBookBarcode") String strBookBarcode, @Param("strSchoolId") String strSchoolId);
	
	public List<Library> categorylist(Page page);
	
	public List<Library> collectionTypelist(Page page);
	
	public String getMaxBookNumber(@Param("strClassNumber") String strClassNumber,@Param("strSchoolId") String strSchoolId);

    List<hotResult> getHotBooks(hotVo hotVoConditions);

    List<Library> pressList();

    Library strBookBarcode(String strBookBarcode, String strSchoolId);

    List<Library> manyLately(LatelyVo latelyVo);
}

